import matplotlib.pyplot as plt
import pandas as pd
import math

log_path = r'D:\coding\high-frequency-trading\Q3\logs\1668064846_美的集团000333.SZ.xlsx.csv'
pd_data = pd.read_csv(log_path)
seies = pd_data['total']
base = 2500000
list_data = [d / base for d in seies.values]
max_data = max(seies.values[:1750])
min_data = min(seies.values[:1750])
hcl = (max_data - min_data) / max_data
print(hcl)
print(max_data - min_data)

plt.figure(figsize=(15, 7.5))
plt.plot(list_data[:1750])

plt.show()
